package com.daka.service.impl;

import com.daka.dao1.OrganizationDao;
import com.daka.entity.Organization1;
import com.daka.service.OrganizationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by yangx
 * CreateTime: 2016/11/22 10:56
 */

@Service("organizationService")
public class OrganizationServiceImpl implements OrganizationService {

    @Resource
    private OrganizationDao organizationDao1;

    public int deleteByPrimaryKey(Integer id) {
        return organizationDao1.deleteByPrimaryKey(id);
    }

    public int insert(Organization1 record) {
        return organizationDao1.insert(record);
    }

    public Organization1 selectByPrimaryKey(Integer id) {
        return organizationDao1.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Organization1 record) {
        return organizationDao1.updateByPrimaryKeySelective(record);
    }
}
